package org.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.example.domain.Question;
import org.example.domain.QuestionContent;

@Mapper
public interface QuestionContentDao extends BaseMapper<QuestionContent> {

    @Select("select * from question_content where question_id =#{questionId}")
    QuestionContent getContentByQuestionId(int questionId);

    @Delete("delete from question_content where question_id = #{questionId}")
    int deleteContentByQuestionId(int questionId);

//    @Update("update question_content set  where question_id = #{questionId}")
//    int updateContentByQuestionId(QuestionContent questionContent);
}
